package com.ld.collegetask.beans;

import android.databinding.BindingAdapter;
import android.widget.ImageView;

import com.ld.collegetask.R;
import com.ld.collegetask.utils.AppApplication;
import com.squareup.picasso.Picasso;

/**
 * Created by 樊海波 on 2017/9/20.
 */

public class MemberBean {
    private Integer userId;
    private String usrename;
    private String realname;
    private String phone;
    private String abalance;
    private String afreeze;
    private String totalincome;
    private String totaldisburse;
    private String totalrelease;
    private String totalreceive;
//    private Integer authentication;
    private String userImg;

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

//    public Integer getAuthentication() {
//        return authentication;
//    }
//
//    public void setAuthentication(Integer authentication) {
//        this.authentication = authentication;
//    }
//
//    public String getAuthentication_text() {
//        if (authentication == 0){
//            return "未认证";
//        }else if(authentication == 1){
//            return "待认证";
//        }else {
//            return "已认证";
//        }
//    }

    @BindingAdapter({"bind:OrderUserUserImg"})
    public static void OrderUserUserImg(ImageView view, String imageUrl) {
        Picasso.with(view.getContext())
                .load(AppApplication.server+imageUrl)
                .placeholder(R.drawable.user_img)
                .fit()
                .into(view);
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsrename() {
        return usrename;
    }

    public void setUsrename(String usrename) {
        this.usrename = usrename;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAbalance() {
        return abalance;
    }

    public void setAbalance(String abalance) {
        this.abalance = abalance;
    }

    public String getAfreeze() {
        return afreeze;
    }

    public void setAfreeze(String afreeze) {
        this.afreeze = afreeze;
    }

    public String getTotalincome() {
        return totalincome;
    }

    public void setTotalincome(String totalincome) {
        this.totalincome = totalincome;
    }

    public String getTotaldisburse() {
        return totaldisburse;
    }

    public void setTotaldisburse(String totaldisburse) {
        this.totaldisburse = totaldisburse;
    }

    public String getTotalrelease() {
        return totalrelease;
    }

    public void setTotalrelease(String totalrelease) {
        this.totalrelease = totalrelease;
    }

    public String getTotalreceive() {
        return totalreceive;
    }

    public void setTotalreceive(String totalreceive) {
        this.totalreceive = totalreceive;
    }
}
